<div class="container">
	<div class="row">
<style>
.wx-name{font-size:12px;margin:5px 0;height:32px;overflow:hidden;line-height:16px;}
.video-height img{height:95px;}
#recommend-wx .img-circle{width:70px;height:70px;}
</style>	
		<div class="col-md-8">
		<div class="ui-portlet">
			<div class="ui-portlet-header">	      <span class="title">公众号推荐</span>            	
				<div class="carouFredSel-controls">      
	        		    <span class="prev disabled" id="photo-carou-prev" style="display: inline-block;"><i class="fa fa-angle-left"></i></span>                      
	        		    <span class="next" id="photo-carou-next" style="display: inline-block;"><i class="fa fa-angle-right"></i></span>
	        		</div>
			</div>
			<div>
			<div id="recommend-wx" class="carouFredSel-items row">
			<portlet  portlet="body" list_tpl="inner" limit="6" model="Misccate" recursive="-1" info="conditions[parent_id]=172"  order="left asc">
				<?php $tag_cate_id = $item[id]; $wx_nums = 0; ?>
				<div class="col-md-12">
				<h3>{{$item['name']}}<small>more</small></h3>
				<portlet  portlet="body"  list_tpl="inner" model="Tag" info="conditions[cate_id]=$tag_cate_id" order="priority desc" limit="5">
					<!--<tr><td>{{$item['name']}}</td><td> -->
					<?php $tag_id = $item[id]; ?>
					<portlet portlet="body"  list_tpl="inner" limit="5" model="Wx" recursive="-1" order="priority desc" info="recursive=-1&fields[0]=Wx.*&joins[0][table]=tag_relateds&joins[0][alias]=TagRelated&joins[0][type]=inner&joins[0][conditions]=Wx.id=TagRelated.relatedid&conditions[Wx.show_in_list]=1&conditions[tag_id]=$tag_id&conditions[relatedmodel]=Wx&order=Wx.priority desc">
						<?php $wx_nums++; if($wx_nums > 18) break; ?>
						<div class="col-xs-2">
							<a href="{{$this->Html->url('/wxes/'.($item_all['Wx']['slug']?$item_all['Wx']['slug']:$item_all['Wx']['id']))}}"><img class="img-circle img-responsive" src="{{$this->Html->url($item_all['Wx']['coverimg']?$item_all['Wx']['coverimg']:'/img/nophoto-wx.jpg')}}" title="{{$item_all['Wx']['name']}}"></a>
							<p class="wx-name text-center"><a href="{{$this->Html->url('/wxes/'.($item_all['Wx']['slug']?$item_all['Wx']['slug']:$item_all['Wx']['id']))}}">{{$item_all['Wx']['name']}}</a></p>
						</div>
					</portlet>
					<?php if($wx_nums > 18) break; ?>
				</portlet>
				</div>
			</portlet>
			</div>
			</div>
		</div>
		</div>
	<script type="text/javascript" src="/js/carouFredSel/jquery.carouFredSel-6.2.1.js"></script>
<script type="text/javascript">
var caroufredsel = function(){
	$(".carouFredSel-items").carouFredSel({
		responsive	: true,
		items		: 1,//显示的数目
		scroll : {
            items           : 1,
            easing          : "swing",
            duration        : 1000,                         
            pauseOnHover    : true
        },
        prev: '#photo-carou-prev',
        next: '#photo-carou-next',
		height: 'auto',
	});

};
$(window).load(function () {
    caroufredsel();
});
$(window).resize(function () {
    caroufredsel();
});            

</script>
		<div class="col-md-4">
			<portlet  title="分类标签" list_tpl="inner" limit="48" model="Tag" recursive="-1" order="priority desc" info="conditions[cate_id %3C]=214&conditions[cate_id %3E]=172&recursive=-1&fields[0]=Tag.name&fields[2]=Tag.created&fields[3]=Tag.id&order=priority desc">
				<li style="float:left;width:25%;"><a href="{{$this->Html->url('/tags/lists/Wx/'.$item['id'])}}" title="{{$item['name']}}">{{usubstr($item['name'],0,4,false)}}</a>&nbsp;</li>
			</portlet>
		</div>
	</div>
	<div class="row">
		<!-- <div class="col-md-12">
			<?php $title='分享视频 <small style="margin-left:50px;"><a target="_blank" title="查看更多视频" href="/search/index?wd=video_iframe&t=all">查看更多>></a></small>'; ?>
			<portlet model="Article" title="{{$title}}" ulclass="video-height" xs_sort="created" xs_search_wd="video_iframe" limit="12" row="6" list_tpl="regions/_photolist">
			</portlet>
		</div> -->
		<div class="col-md-4">
		
		<portlet return="array" return_var="wxes"  cache="900"  showpages="0" model="Wx" info="joins[0][table]=tag_relateds&joins[0][alias]=TagRelated&joins[0][type]=inner&joins[0][conditions]=Wx.id=TagRelated.relatedid&conditions[tag_id]=1&conditions[relatedmodel]=Wx"></portlet>
		<?PHP foreach($wxes['datalist'] as $wx) {$wx_ids = $wx['Wx']['id'];};?>
<?php $title='互联网 <small style="margin-left:50px;"><a target="_blank" title="查看更多互联网公众号消息" href="/tags/lists/Wx/1">查看更多>></a></small>'; ?>
<portlet  title="{{$title}}" cache="no"  list_tpl="inner" page_name="ap" limit="10" ulclass="portlet-title-list" model="Article" recursive="-1" order="created desc" info="recursive=-1&conditions[Article.wx_id]=$wx_ids">
	{{template articles/_titlelist}}
</portlet>
		</div>
		<div class="col-md-4">
		<portlet return="array" return_var="wxes"  cache="900"  showpages="0" model="Wx" info="joins[0][table]=tag_relateds&joins[0][alias]=TagRelated&joins[0][type]=inner&joins[0][conditions]=Wx.id=TagRelated.relatedid&conditions[tag_id]=90&conditions[relatedmodel]=Wx"></portlet>
		<?PHP foreach($wxes['datalist'] as $wx) {$wx_ids = $wx['Wx']['id'];};?>
<?php $title='科技媒体 <small style="margin-left:50px;"><a target="_blank" title="查看更多科技媒体公众号消息" href="/tags/lists/Wx/90">查看更多>></a></small>'; ?>
<portlet  title="{{$title}}" list_tpl="inner" page_name="ap" limit="10" ulclass="portlet-title-list" model="Article" recursive="-1" order="created desc" info="recursive=-1&conditions[Article.wx_id]=$wx_ids">
	{{template articles/_titlelist}}
</portlet>
		</div>
		<div class="col-md-4">
		<portlet return="array" return_var="wxes"  cache="900"  showpages="0" model="Wx" info="joins[0][table]=tag_relateds&joins[0][alias]=TagRelated&joins[0][type]=inner&joins[0][conditions]=Wx.id=TagRelated.relatedid&conditions[tag_id]=4&conditions[relatedmodel]=Wx"></portlet>
		<?PHP foreach($wxes['datalist'] as $wx) {$wx_ids = $wx['Wx']['id'];};?>
<?php $title='创业 <small style="margin-left:50px;"><a target="_blank" title="查看更多创业公众号消息" href="/tags/lists/Wx/4">查看更多>></a></small>'; ?>
<portlet  title="{{$title}}" list_tpl="inner" page_name="ap" limit="10" ulclass="portlet-title-list" model="Article" recursive="-1" order="created desc" info="recursive=-1&conditions[Article.wx_id]=$wx_ids">
	{{template articles/_titlelist}}
</portlet>
		</div>
		<div class="col-md-4">
		<portlet return="array" return_var="wxes"  cache="900"  showpages="0" model="Wx" info="joins[0][table]=tag_relateds&joins[0][alias]=TagRelated&joins[0][type]=inner&joins[0][conditions]=Wx.id=TagRelated.relatedid&conditions[tag_id]=8&conditions[relatedmodel]=Wx"></portlet>
		<?PHP foreach($wxes['datalist'] as $wx) {$wx_ids = $wx['Wx']['id'];};?>
<?php $title='管理 <small style="margin-left:50px;"><a target="_blank" title="查看更多管理公众号消息" href="/tags/lists/Wx/8">查看更多>></a></small>'; ?>
<portlet  title="{{$title}}" list_tpl="inner" page_name="ap" limit="10" ulclass="portlet-title-list" model="Article" recursive="-1" order="created desc" info="recursive=-1&conditions[Article.wx_id]=$wx_ids">
	{{template articles/_titlelist}}
</portlet>
		</div>
		<div class="col-md-4">
		<portlet return="array" return_var="wxes"  cache="900"  showpages="0" model="Wx" info="joins[0][table]=tag_relateds&joins[0][alias]=TagRelated&joins[0][type]=inner&joins[0][conditions]=Wx.id=TagRelated.relatedid&conditions[tag_id]=32&conditions[relatedmodel]=Wx"></portlet>
		<?PHP foreach($wxes['datalist'] as $wx) {$wx_ids = $wx['Wx']['id'];};?>
<?php $title='财经 <small style="margin-left:50px;"><a target="_blank" title="查看更多财经公众号消息" href="/tags/lists/Wx/32">查看更多>></a></small>'; ?>
<portlet  title="{{$title}}" list_tpl="inner" page_name="ap" limit="10" ulclass="portlet-title-list" model="Article" recursive="-1" order="created desc" info="recursive=-1&conditions[Article.wx_id]=$wx_ids">
	{{template articles/_titlelist}}
</portlet>
		</div>
		<div class="col-md-4">
		<portlet return="array" return_var="wxes"  cache="900"  showpages="0" model="Wx" info="joins[0][table]=tag_relateds&joins[0][alias]=TagRelated&joins[0][type]=inner&joins[0][conditions]=Wx.id=TagRelated.relatedid&conditions[tag_id]=11&conditions[relatedmodel]=Wx"></portlet>
		<?PHP foreach($wxes['datalist'] as $wx) {$wx_ids = $wx['Wx']['id'];};?>
<?php $title='百科 <small style="margin-left:50px;"><a target="_blank" title="查看更多百科公众号消息" href="/tags/lists/Wx/11">查看更多>></a></small>'; ?>
<portlet  title="{{$title}}" list_tpl="inner" page_name="ap" limit="10" ulclass="portlet-title-list" model="Article" recursive="-1" order="created desc" info="recursive=-1&conditions[Article.wx_id]=$wx_ids">
	{{template articles/_titlelist}}
</portlet>
		</div>
		<div class="col-md-4">
		<portlet return="array" return_var="wxes"  cache="900"  showpages="0" model="Wx" info="joins[0][table]=tag_relateds&joins[0][alias]=TagRelated&joins[0][type]=inner&joins[0][conditions]=Wx.id=TagRelated.relatedid&conditions[tag_id]=94&conditions[relatedmodel]=Wx"></portlet>
		<?PHP foreach($wxes['datalist'] as $wx) {$wx_ids = $wx['Wx']['id'];};?>
<?php $title='文摘杂谈 <small style="margin-left:50px;"><a target="_blank" title="查看更多文摘杂谈公众号消息" href="/tags/lists/Wx/94">查看更多>></a></small>'; ?>
<portlet  title="{{$title}}" list_tpl="inner" page_name="ap" limit="10" ulclass="portlet-title-list" model="Article" recursive="-1" order="created desc" info="recursive=-1&conditions[Article.wx_id]=$wx_ids">
	{{template articles/_titlelist}}
</portlet>
		</div>
		<div class="col-md-4">
		<portlet return="array" return_var="wxes"  cache="900"  showpages="0" model="Wx" info="joins[0][table]=tag_relateds&joins[0][alias]=TagRelated&joins[0][type]=inner&joins[0][conditions]=Wx.id=TagRelated.relatedid&conditions[tag_id]=65&conditions[relatedmodel]=Wx"></portlet>
		<?PHP foreach($wxes['datalist'] as $wx) {$wx_ids = $wx['Wx']['id'];};?>
<?php $title='养生资讯 <small style="margin-left:50px;"><a target="_blank" title="查看更多养生资讯公众号消息" href="/tags/lists/Wx/65">查看更多>></a></small>'; ?>
<portlet  title="{{$title}}" list_tpl="inner" page_name="ap" limit="10" ulclass="portlet-title-list" model="Article" recursive="-1" order="created desc" info="recursive=-1&conditions[Article.wx_id]=$wx_ids">
	{{template articles/_titlelist}}
</portlet>
		</div>
		<div class="col-md-4">
		<portlet return="array" return_var="wxes"  cache="900"  showpages="0" model="Wx" info="joins[0][table]=tag_relateds&joins[0][alias]=TagRelated&joins[0][type]=inner&joins[0][conditions]=Wx.id=TagRelated.relatedid&conditions[tag_id]=32&conditions[relatedmodel]=Wx"></portlet>
		<?PHP foreach($wxes['datalist'] as $wx) {$wx_ids = $wx['Wx']['id'];};?>
<?php $title='精致女人 <small style="margin-left:50px;"><a target="_blank" title="查看更多精致女人公众号消息" href="/tags/lists/Wx/23">查看更多>></a></small>'; ?>
<portlet  title="{{$title}}" list_tpl="inner" page_name="ap" limit="10" ulclass="portlet-title-list" model="Article" recursive="-1" order="created desc" info="recursive=-1&conditions[Article.wx_id]=$wx_ids">
	{{template articles/_titlelist}}
</portlet>
		</div>
	</div>
</div>
